$(document).ready(function () {
    subjectService.allSubject(findSubject);
});


function findSubject(subject){
    var option = '<option value="" style="text-align: center">' + '---------请选择---------' + '</option>';
    for (var i = 0; i < subject.length; i++) {
        option = option + '<option style="text-align: center" value="' + subject[i].subjectName + '">'
            + subject[i].subjectName + "</option>";
    }
    $('#subject').html(option);
}